package com.hwadee.ems.enums;

import com.fasterxml.jackson.annotation.JsonValue;

import com.baomidou.mybatisplus.annotation.EnumValue;

import lombok.Getter;

@Getter
public enum ApprovalStatus {
    APPROVED(0, "批准"),
    REJECTED(1, "驳回"),
    PENDING(2, "未审批")
    ;
    
    @EnumValue
    private final int value;
    @JsonValue
    private final String description;

    ApprovalStatus(int value, String description) {
        this.value = value;
        this.description = description;
    }

}
